﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using System.Xml.Linq;

namespace AppFramework.DinosaursParkMes.Material.Dto
{
    public class MaterialParticulars
    {
        public int Id { get; set; }
        /// <summary>
        /// 物料编号
        /// </summary  
        public string Materialnumber { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 规格型号
        /// </summary>
        public string Specificationsversion { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public string Unit { get; set; }

        /// <summary>
        /// 物料类型
        /// </summary>
        public string Materialtype { get; set; }

        /// <summary>   
        /// 物料属性
        /// </summary>
        public string MaterialProperty { get; set; }

        /// <summary>
        /// 物料分类
        /// </summary>
        public int Materialclassify { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public bool State { get; set; } = true;

        /// <summary>
        /// 有效期
        /// </summary>
        public int? Periodofvalidity { get; set; }

        /// <summary>
        /// 有效期单位
        /// </summary>
        public string Periodofvalidityunit { get; set; }

        /// <summary>
        /// 报警天数
        /// </summary>
        public int? Alarmdays { get; set; }

        /// <summary>
        /// 库存上限
        /// </summary>
        public int? Inventoryceiling { get; set; }

        /// <summary>
        /// 库存下限
        /// </summary>
        public int? Stockfloor { get; set; }

        /// <summary>
        /// 采购价格
        /// </summary>
        public decimal? Purchaseprice { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        public bool IsDeleted { get; set; }

        public List<ParticularsImgList> ImgChildren { get; set; }
        public List<ParticularsAccessorylist> AccessoryChildren { get; set; }
    }
    public class ParticularsImgList
    {
        public string Filepath { get; set; }
    }
    public class ParticularsAccessorylist
    {
        /// <summary>
        /// 图片名称
        /// </summary>
        public string Filename { get; set; }
        /// <summary>
        /// 图片路径
        /// </summary>
        public string Filepath { get; set; }
}

}
